# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-dhcplib
_pkgname=dhcplib
pkgver=0.1.1
pkgrel=7
pkgdesc='Pure-Python, spec-compliant DHCP-packet-processing library.'
arch=('any')
url='https://pypi.org/project/dhcplib/#files'
license=('GPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('38739e333c011d4d920d2356cc9e8a760fbe16d247ffba2d52b299b257737232931d684e6ea94e715aae223df357463b2800fd2837a514e32b1eff01f03be965')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

